@extends('layouts.admin.application')

@section('content')
    <div class="main-content" style="margin-top: 10px;">
        <div class="col-xs-12">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="#">首页</a></li>
                    <li><a href="{{ route('shop.express.index') }}">物流管理</a></li>
                    <li class="active">新增快递方式</li>
                </ul>
            </div>

            @include('layouts.partials._flash')

            <form class="form-horizontal" role="form" action="{{ route('shop.express.store') }}" method="post"
                  style="margin-top: 10px;">

                {{csrf_field()}}

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">快递名称</label>

                    <div class="col-sm-9">
                        <input type="text" name="name" placeholder="快递名称	，你懂得~" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">快递公司代码</label>

                    <div class="col-sm-9">
                        <input type="text" name="code" placeholder="快递公司代码	，你懂得~" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">网址</label>

                    <div class="col-sm-9">
                        <input type="text" name="url" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">运费</label>

                    <div class="col-sm-9">
                        <input type="text" name="shipping_money" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">满额包邮</label>

                    <div class="col-sm-9">
                        <input type="text" name="shipping_free" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">是否可用</label>

                    <div class="col-sm-9">
                        <div class="radio" style="">
                            <label>
                                <input name="is_enable" type="radio" class="ace" value="1" checked>
                                <span class="lbl"> 是</span>
                            </label>
                            <label>
                                <input name="is_enable" type="radio" class="ace" value="0">
                                <span class="lbl"> 否</span>
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">排序</label>

                    <div class="col-sm-9">
                        <input type="text" name="sort_order" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">配送方式描述</label>

                    <div class="col-sm-9">
                        <textarea id="description" name="description" cols="47" rows="7"></textarea>

                    </div>
                </div>

                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit"><i class="icon-ok bigger-110"></i>保存</button>
                        &nbsp; &nbsp; &nbsp;
                        <a class="btn" onclick="javascript:history.back(-1);return false;"><i
                                    class="icon-undo bigger-110"></i>返回</a>
                    </div>
                </div>
            </form>
        </div>

    </div>
@endsection

@section('js')
    <script src="/vendor/html5-fileupload/jquery.html5-fileupload.js"></script>
    <script src="/js/upload.js"></script>
@endsection